package com.javasm.commons.enums;

import org.apache.ibatis.jdbc.Null;

public enum E {
    SUC(20000,"请求成功!"),
    OPERATION_FAILED(30000,"操作失败!请联系管理员~"),
    ERROR(50000,"请求异常!请联系管理员~"),
    LOGIN_ERROR(50001,"用户名或密码错误!"),
    NOT_EXISTS(50002,"资源不存在!" ),
    NO_LOGIN(50003,"请先登录!" ),
    LOCATION_FAILED(50004,"地址错误!"),
    LOGIN_SUCCESS(50005,"登录成功"),
    TOKEN_ERROR(50006, "token失效"),
    EXISTS(50007,"资源已存在!" ),
    CODE_ERROR(50008,"验证码错误" ),
    FILE_IS_NULL(12000,"文件为空"),
    STOCK_NOT_ENOUGH(13000,"赠品库存不足"), DIR_NULL(13001,"上传文件必须指定目录" ),
    NOT_SALES_RETURN_GOODS(13002,"无退货商品" ), NO_ORDER_STATUS(13004,"无订单状态" );

    private Integer code;
    private String msg;

    E(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
